<?php /* Smarty version 2.6.20, created on 2016-07-20 12:07:08
         compiled from shop_detail.htm */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>返利详情</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="admin.css" rel="stylesheet" type="text/css" />
<link href="../admin/easyui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../script/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../script/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../script/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">

</script>
</head>
<body>
<div class="container">
        <div class="flow">
            <div class="itemtitle">
                <h3>店铺详情</h3>
                <ul>
                <li><a href="?m=micro_shop&s=shop_list.php"><span>店铺列表</span></a></li>
                <li><a href="?m=micro_shop&s=shop_bonus_list.php&member_id=<?php echo $this->_tpl_vars['de']['member_id']; ?>
"><span>红包列表</span></a></li>
                <li><a href="?m=micro_shop&s=shop_pay_log.php&member_id=<?php echo $this->_tpl_vars['de']['member_id']; ?>
"><span>支付明细</span></a></li>
                </ul>
            </div>
        </div>
        
        <div class="h35"></div>
        <table class="table">
        <thead>
            <tr>
                <th class="partition" colspan="99">用户信息</th>
            </tr>
        </thead>
        <tbody>
        <tr class="tr">
            <td width="100">店铺名称:</td>
            <td ><?php echo $this->_tpl_vars['de']['shop_info']['name']; ?>
</td>
            
            <td width="100">店铺等级:</td>
            <td><?php if ($this->_tpl_vars['de']['shop_info']['level'] == 1): ?>旗舰店<?php elseif ($this->_tpl_vars['de']['shop_info']['level'] == 2): ?>专营店<?php else: ?>会员店<?php endif; ?></td>            
            
            <td width="50">邀请码:</td>
            <td width="50"><b class="org"><?php echo $this->_tpl_vars['de']['invite_code']; ?>
</b></td>
        
            <td width="100">用户名称:</td>
            <td width="100"><?php echo $this->_tpl_vars['de']['name']; ?>
</td>
        
            <td width="100">真实姓名:</td>
            <td><?php echo $this->_tpl_vars['de']['shop_info']['user_real_name']; ?>
</td>
            
        </tr>
        <tr>    
            <td width="100">身份证号:</td>
            <td><?php echo $this->_tpl_vars['de']['shop_info']['user_idcard']; ?>
</td>            
            
            <td width="50">手机:</td>
            <td><?php echo $this->_tpl_vars['de']['mobile']; ?>
</td>
            
            <td width="50">QQ:</td>
            <td><?php echo $this->_tpl_vars['de']['qq']; ?>
</td>
                        
            <td width="50">微信:</td>
            <td><?php echo $this->_tpl_vars['de']['shop_info']['weixin']; ?>
</td>
            
            <td colspan="2"></td>
        </tr>
        <tr>
            <td width="50">团队人数:</td>
            <td width="150"><?php echo $this->_tpl_vars['de']['member_num']; ?>
</td>
            
        	<td width="50">商圈人数:</td>
            <td width="150"><?php echo $this->_tpl_vars['de']['business_num']; ?>
</td>
            
            <td width="50">本月销售额:</td>
            <td width="100"><?php echo $this->_tpl_vars['de']['self_sales']; ?>
</td>
            
            <td width="120">团队本月销售总额:</td>
            <td width="100"><?php echo $this->_tpl_vars['de']['group_sales']*1; ?>
</td>
            
            <td colspan="2"></td>
        </tr>
        <tr class="tr">
            <td>账户余额:</td>
            <td colspan="11"><b class="org"><?php echo $this->_tpl_vars['de']['account']; ?>
</b></td>
        </tr>
        <!--tr class="tr">
            <td>销售明细统计:</td>
            <td colspan="11">
            	<a id="tongji" href='?m=micro_shop&s=shop_detail.php&id=tongji&sid=<?php echo $this->_tpl_vars['de']['id']; ?>
'  >
            		<b class="org">统计</b>
            	</a>
            </td>
        </tr-->
        </tbody>
    </table>
    <table class="table product">    
        <thead>
            <tr>
                <th class="partition" colspan="99">销售信息</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td width="50">时间</td>
                <td width="100">销售额</td>
                <td width="100">团队销售额</td>
                <td width="100">结算状态</td>
            </tr>
            <?php $_from = $this->_tpl_vars['de']['rebate_records']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['list']):
?>
            <tr>
                <td><?php echo $this->_tpl_vars['list']['formart_time']; ?>
</td>
                <td><?php echo $this->_tpl_vars['list']['self_sales']; ?>
</td>
                <td><?php echo $this->_tpl_vars['list']['group_sales']; ?>
</td>
                <td><?php if ($this->_tpl_vars['list']['status']): ?>已结算<?php else: ?>未结算<?php endif; ?></td>
            </tr>
            <?php endforeach; else: ?>
            <tr><td class="norecord" colspan="6">暂无信息</td></tr>
            <?php endif; unset($_from); ?>
        </tbody>
    </table>
</div>
</body>
</html>